//#define __FORCE_TRACE__
//#define __FORCE_DEBUG__
//#define __FORCE_INFO__
#define THIS_FILE "fn_getInGear.sqf"
#include <btc_macros.h>
TRACE_1("Start",_this);
private ["_vehicle","_position","_unit"];
_vehicle = _this select 0;
_position  = _this select 1;
_unit = _this select 2;
if (Alive _unit && format ["%1", _unit getVariable "BTC_need_revive"] == "0" && BTCR_NextGearSave < time && (BTC_gear_on_death == 0)) then {
	BTCR_NextGearSave = time + 3;
	BTC_gear = [_unit] call BTCR_fnc_getGear;
	TRACE_1("BTC_Gear",BTC_gear);
};
TRACE("End");